﻿//import RouterView from './components/RouterView.vue'
import MainRouterView from './pages/Main/Index.vue'


import global from '../config/global.js'


const routers = [
    {
        path: global.BASE_URL + '/Login',
        component: (resolve) => require(['./pages/Login/Index.vue'], resolve)
    },
    {
        path: global.BASE_URL + '/NoAuthority',
        component: (resolve) => require(['./pages/Login/NoAuthority.vue'], resolve)
    },
    {
        path: global.BASE_URL + '/Logout',
        component: (resolve) => require(['./pages/Login/Logout.vue'], resolve)
    },
    {
        path: global.BASE_URL,
        component: MainRouterView,
        children: [
            {
                path: '',
                component: (resolve) => require(['./pages/Home/Index.vue'], resolve)
            },
            {
                path: 'Home',
                component: (resolve) => require(['./pages/Home/Index.vue'], resolve)
            },
            {
                name: 'AbpIdentity.Users',
                path: 'Identity/Users',
                component: (resolve) => require(['./pages/Identity/Users/Index.vue'], resolve)
            },
            {
                name: 'AbpIdentity.Roles',
                path: 'Identity/Roles',
                component: (resolve) => require(['./pages/Identity/Roles/Index.vue'], resolve)
            },

            //Products
            {
                name: 'BangleAbp.ProductType',
                path: 'Products/ProductType',
                component: (resolve) => require(['./pages/BangleAbp/Products/ProductType/Index.vue'], resolve)
            },
            {
                name: 'BangleAbp.Product',
                path: 'Products/Product',
                component: (resolve) => require(['./pages/BangleAbp/Products/Product/Index.vue'], resolve)
            },
        ]
    }
]
export default routers